package it.yuzuojian.com.dao;

import it.yuzuojian.com.domain.Consumer;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ConsumerMapper {
    public Integer insert(Consumer consumer);
    public Integer update(Consumer consumer);
    public Integer delete(Integer id);
    public Consumer selectById(Integer id);
    public List<Consumer> selectAll();
    public List<Consumer> selectByUsername(String username);
    public Consumer selectOneByUsername(String username);
}
